export default {
  tabLayout: 'TOP',
  loadDefault: true,
  showDataInfoBar: true,
  deviewCodeName: 'quick_search',
  deviewId: '6e04146dd2a9b1435f48cc78b14277c1',
  appWFId: 'workflow',
  accUserMode: 2,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.MASTER',
  },
  caption: '快速搜索',
  codeName: 'master_quick_search',
  appDataEntityId: 'web.master',
  sysCss: {
    cssName: 'index-quick-search-style',
  },
  viewLayoutPanel: {
    layoutBodyOnly: true,
    viewProxyMode: true,
    layoutMode: 'FLEX',
    layout: {
      layout: 'FLEX',
    },
    rootPanelItems: [
      {
        actionGroupExtractMode: 'ITEM',
        panelItems: [
          {
            actionGroupExtractMode: 'ITEM',
            panelItems: [
              {
                actionGroupExtractMode: 'ITEM',
                panelItems: [
                  {
                    caption: '页面标题',
                    itemStyle: 'DEFAULT',
                    itemType: 'CTRLPOS',
                    layoutPos: {
                      shrink: 1,
                      layout: 'FLEX',
                    },
                    showCaption: true,
                    id: 'captionbar',
                  },
                ],
                layout: {
                  align: 'center',
                  layout: 'FLEX',
                },
                dataRegionType: 'INHERIT',
                caption: '容器',
                itemStyle: 'DEFAULT',
                itemType: 'CONTAINER',
                layoutPos: {
                  shrink: 1,
                  heightMode: 'FULL',
                  layout: 'FLEX',
                },
                id: 'view_captionbar',
              },
            ],
            layout: {
              layout: 'FLEX',
            },
            dataRegionType: 'INHERIT',
            caption: '容器',
            itemStyle: 'DEFAULT',
            itemType: 'CONTAINER',
            layoutPos: {
              shrink: 1,
              heightMode: 'FULL',
              layout: 'FLEX',
            },
            id: 'view_header_left',
          },
          {
            actionGroupExtractMode: 'ITEM',
            panelItems: [
              {
                actionGroupExtractMode: 'ITEM',
                panelItems: [
                  {
                    caption: '工具栏',
                    itemStyle: 'DEFAULT',
                    itemType: 'CTRLPOS',
                    layoutPos: {
                      shrink: 1,
                      layout: 'FLEX',
                    },
                    showCaption: true,
                    id: 'toolbar',
                  },
                ],
                layout: {
                  align: 'center',
                  layout: 'FLEX',
                },
                dataRegionType: 'INHERIT',
                caption: '容器',
                itemStyle: 'DEFAULT',
                itemType: 'CONTAINER',
                layoutPos: {
                  shrink: 1,
                  heightMode: 'FULL',
                  layout: 'FLEX',
                },
                id: 'view_toolbar',
              },
            ],
            layout: {
              layout: 'FLEX',
            },
            dataRegionType: 'INHERIT',
            caption: '容器',
            itemStyle: 'DEFAULT',
            itemType: 'CONTAINER',
            layoutPos: {
              shrink: 1,
              heightMode: 'FULL',
              layout: 'FLEX',
            },
            id: 'view_header_right',
          },
        ],
        predefinedType: 'VIEWHEADER',
        layout: {
          align: 'space-between',
          dir: 'row',
          layout: 'FLEX',
          valign: 'center',
        },
        dataRegionType: 'INHERIT',
        caption: '容器',
        itemStyle: 'DEFAULT',
        itemType: 'CONTAINER',
        layoutPos: {
          shrink: 0,
          layout: 'FLEX',
        },
        id: 'view_header',
      },
      {
        actionGroupExtractMode: 'ITEM',
        panelItems: [
          {
            caption: '搜索栏',
            itemStyle: 'DEFAULT',
            itemType: 'CTRLPOS',
            layoutPos: {
              shrink: 1,
              layout: 'FLEX',
              widthMode: 'FULL',
            },
            showCaption: true,
            id: 'searchbar',
          },
        ],
        layout: {
          dir: 'row-reverse',
          layout: 'FLEX',
          valign: 'center',
        },
        dataRegionType: 'INHERIT',
        caption: '容器',
        itemStyle: 'DEFAULT',
        itemType: 'CONTAINER',
        layoutPos: {
          shrink: 0,
          layout: 'FLEX',
          spacingLeft: 'INNERMEDIUM',
          spacingRight: 'INNERMEDIUM',
          spacingTop: 'INNERMEDIUM',
        },
        id: 'view_searchbar',
      },
      {
        actionGroupExtractMode: 'ITEM',
        panelItems: [
          {
            actionGroupExtractMode: 'ITEM',
            panelItems: [
              {
                caption: '关系分页部件',
                itemStyle: 'DEFAULT',
                itemType: 'CTRLPOS',
                layoutPos: {
                  shrink: 1,
                  layout: 'FLEX',
                },
                showCaption: true,
                id: 'tabexppanel',
              },
            ],
            layout: {
              layout: 'FLEX',
            },
            dataRegionType: 'INHERIT',
            caption: '容器',
            contentHeight: 54,
            height: 54,
            itemStyle: 'DEFAULT',
            itemType: 'CONTAINER',
            layoutPos: {
              shrink: 0,
              height: 54,
              heightMode: 'PX',
              layout: 'FLEX',
            },
            id: 'view_tabexppanel',
          },
          {
            actionGroupExtractMode: 'ITEM',
            panelItems: [
              {
                rawItem: {
                  predefinedType: 'NAV_POS',
                  id: 'nav_pos',
                },
                caption: '导航区占位',
                itemStyle: 'DEFAULT',
                itemType: 'RAWITEM',
                layoutPos: {
                  shrink: 1,
                  heightMode: 'FULL',
                  layout: 'FLEX',
                  widthMode: 'FULL',
                },
                showCaption: true,
                id: 'nav_pos',
              },
            ],
            layout: {
              layout: 'FLEX',
            },
            dataRegionType: 'INHERIT',
            caption: '容器',
            itemStyle: 'DEFAULT',
            itemType: 'CONTAINER',
            layoutPos: {
              grow: 1,
              shrink: 1,
              layout: 'FLEX',
            },
            id: 'view_nav_pos',
          },
        ],
        predefinedType: 'VIEWCONTENT',
        layout: {
          layout: 'FLEX',
        },
        dataRegionType: 'INHERIT',
        caption: '容器',
        itemStyle: 'DEFAULT',
        itemType: 'CONTAINER',
        layoutPos: {
          grow: 1,
          shrink: 1,
          layout: 'FLEX',
        },
        id: 'view_content',
      },
    ],
    layoutPanel: true,
    appViewLogics: [
      {
        eventNames: 'onViewMounted',
        logicTrigger: 'VIEWEVENT',
        logicType: 'SCRIPT',
        ctrlName: 'searchbar',
        scriptCode:
          "const searchBar = view.getController('searchbar');\r\nif (searchBar) {\r\nsearchBar.state.query = view.params.srfquery ? view.params.srfquery : '';\r\n}",
        builtinLogic: true,
        name: 'VIEWSEARCHBAR',
        id: 'viewsearchbar',
      },
      {
        eventNames: 'onCreated',
        logicTrigger: 'VIEWEVENT',
        logicType: 'SCRIPT',
        scriptCode:
          "view.ctx.evt.on('onRegister', (name, c) => {\r\n    if(name==='tabexppanel'){\r\n        c.state.expViewParams={query: viewParam.srfquery}\r\n    }\r\n});",
        builtinLogic: true,
        name: 'VIEW_CREATED',
        id: 'view_created',
      },
    ],
    controls: [
      {
        groupMode: 'SINGLE',
        quickSearchMode: 2,
        quickSearchWidth: 500,
        enableQuickSearch: true,
        codeName: 'usr0516231788',
        controlType: 'SEARCHBAR',
        logicName: '搜索栏_快速搜索',
        appDataEntityId: 'web.master',
        controlParam: {
          id: 'searchbar',
        },
        modelId: '57d15e456502ee675d5a6c5c4c8693b6',
        modelType: 'PSSYSSEARCHBAR',
        name: 'searchbar',
        id: 'web.master.usr0516231788',
      },
      {
        tabExpPageIds: ['region', 'master'],
        tabLayout: 'TOP',
        uniqueTag: 'master_quick_search__tabexppanel',
        appViewRefs: [
          {
            realTitle: '高级搜索',
            refAppViewId: 'web.region_advanced_search',
            name: 'EXPITEM:region',
            id: 'expitem:region',
          },
          {
            realTitle: '高级搜索',
            refAppViewId: 'web.master_advanced_search',
            name: 'EXPITEM:master',
            id: 'expitem:master',
          },
        ],
        controls: [
          {
            caption: '区划',
            embeddedAppDEViewId: 'web.region_advanced_search',
            codeName: 'quick_search_region',
            controlType: 'TABVIEWPANEL',
            appDataEntityId: 'web.master',
            controlParam: {
              id: 'region',
            },
            modelId: '142c2546b665e5c8633820ea4fdaa2c0_region',
            modelType: 'PSVIEWPANEL',
            name: 'region',
            id: 'quick_search_region',
          },
          {
            caption: '主实体',
            embeddedAppDEViewId: 'web.master_advanced_search',
            codeName: 'quick_search_master',
            controlType: 'TABVIEWPANEL',
            appDataEntityId: 'web.master',
            controlParam: {
              id: 'master',
            },
            modelId: '142c2546b665e5c8633820ea4fdaa2c0_master',
            modelType: 'PSVIEWPANEL',
            name: 'master',
            id: 'quick_search_master',
          },
        ],
        codeName: 'quick_search_tabexppanel',
        controlType: 'TABEXPPANEL',
        appDataEntityId: 'web.master',
        controlParam: {},
        modelId: '142c2546b665e5c8633820ea4fdaa2c0_tabexppanel',
        modelType: 'PSTABEXPPANEL',
        name: 'tabexppanel',
        id: 'quick_search_tabexppanel',
      },
      {
        capLanguageRes: {
          lanResTag: 'DE.LNAME.MASTER',
        },
        caption: '快速搜索',
        codeName: 'quick_search_captionbar',
        controlType: 'CAPTIONBAR',
        appDataEntityId: 'web.master',
        controlParam: {},
        name: 'captionbar',
        id: 'quick_search_captionbar',
      },
    ],
    codeName: 'a75d20064e43668a787',
    controlType: 'VIEWLAYOUTPANEL',
    logicName: 'quick_search分页搜索视图布局面板',
    appDataEntityId: 'web.master',
    controlParam: {},
    modelId: 'd467b4200965ceca3e48b8663fc78edf',
    modelType: 'PSSYSVIEWLAYOUTPANEL',
    name: 'layoutpanel',
    id: 'a75d20064e43668a787',
  },
  title: '快速搜索',
  viewStyle: 'DEFAULT',
  viewType: 'DETABSEARCHVIEW',
  enableDP: true,
  showCaptionBar: true,
  modelId: '142c2546b665e5c8633820ea4fdaa2c0',
  modelType: 'PSAPPDEVIEW',
  name: 'MASTERquick_search',
  id: 'web.master_quick_search',
};
